<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <script src="../plugins/jquery/dist/jquery.js"></script>
    <script src="../plugins/jquery/dist/qrcode.min.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/vue/vue.js"></script>
</head>
<body>
<div id="qrcode"></div>

<div>
    <el-table-column prop="action" label="操作" header-align="center" width="100">
        <template slot-scope="scope">
            <el-button @click="ShowQRCodeDialog(scope.$index,scope.row)" type="text" size="small">生成二维码</el-button>
        </template>
    </el-table-column>
</div>
<script>
    Vue.prototype.$QRCode = function()
    {
        let qrcode = new QRCode('qrcode', {
            width: 232,  // 设置宽度
            height: 232, // 设置高度
            text: '12345',
    });
    };

    this.qrcode = this.$QRCode()
</script>



</body>
</html>